//
//  Config.h
//  棒棒哒
//
//  Created by rimi on 15/8/3.
//  Copyright (c) 2015年 rimi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CustomButton.h"
#import "CustomLabel.h"
#import "NetRequest.h"
#import "BBDTabbarViewController.h"


#ifndef Config_h
#define Config_h

//宽度，高度
#define NAV_HEIGHT 44
#define NAVST_HEIGHT 64
#define TAB_BAR_HIGHT ([BBDTabbarViewController shareTabBarController].tabBar.bounds.size.height)
#define BAR_BUTTON_WIDTH  CGRectGetWidth(self.view.bounds) / 3


#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

#define MID_X(x) CGRectGetMidX(x)
#define MID_Y(y) CGRectGetMidY(y)
#define MIN_X(x) CGRectGetMinX(x)
#define MIN_Y(y) CGRectGetMinY(y)
#define MAX_X(x) CGRectGetMaxX(x)
#define MAX_Y(y) CGRectGetMaxY(y)

//图片
#define IMAGNAME(name) [UIImage imageNamed:name]
#define IMAGE(name) [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:A ofType:nil]]

//接口
#define BASEURL @"http://api.1ccf.com/"
#define DRUGURL @"http://api.1ccf.com/drug/search"//药品
#define BOOKURL @"http://api.1ccf.com/book/search"//图书
#define DISEASE @"http://api.1ccf.com/disease/department"//疾病
#define KNOWLEDGE @"http://api.1ccf.com/lore/loreclass" //知识
#define NEWS @"http://api.1ccf.com/news/search"//资讯
#define NEWSCLASS @"http://api.1ccf.com/news/newsclass"//资讯分类
#define WEATHER @"http://apis.baidu.com/heweather/weather/free"//天气
#define NEWSLIST @"http://api.1ccf.com/news/list"//资讯列表

//颜色
#define NAVCOLOR [UIColor colorWithRed:92.000 / 255 green:155.000 / 255 blue:37.000 /255 alpha:1.000]

//APIKey
#define APIKEY @"dfe7dead7cec2ca2557830c7d6f028b5"

#endif
